var  app=angular.module('myToastr', ['ngAnimate','toastr']);
app.config(function(toastrConfig) {
	  angular.extend(toastrConfig, {
	    autoDismiss: false,
	    containerId: 'toast-container',
	    maxOpened: 0,    
	    newestOnTop: true,
	    positionClass: 'toast-top-center',
	    preventDuplicates: false,
	    preventOpenDuplicates: false,
	    target: 'body'
	  });
	});
app.config(function(toastrConfig) {
			angular.extend(toastrConfig, {
				allowHtml: false,
				closeButton: false,
				closeHtml: '<button>&times;</button>',
				extendedTimeOut: 1000,
				iconClasses: {
					error: 'toast-error',
					info: 'toast-info',
					success: 'toast-success',
					warning: 'toast-warning'
				},  
				messageClass: 'toast-message',
				onHidden: null,
				onShown: null,
				onTap: null,
				progressBar: false,
				tapToDismiss: true,
				templates: {
					toast: 'directives/toast/toast.html',
					progressbar: 'directives/progressbar/progressbar.html'
				},
				timeOut: 2000,
				titleClass: 'toast-title',
				toastClass: 'toast'
			});
		});